package com.kaili.db.service.impl;

import com.kaili.pojo.entity.HsEwbSub;
import com.kaili.db.mapper.HsEwbSubMapper;
import com.kaili.db.service.IHsEwbSubService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 主子单表 服务实现类
 * </p>
 *
 * @author xujinghai
 * @since 2018-06-07
 */
@Service
public class HsEwbSubServiceImpl extends ServiceImpl<HsEwbSubMapper, HsEwbSub> implements IHsEwbSubService {

    @Autowired HsEwbSubMapper hsEwbSubMapper;

    public boolean insertBatch(List<HsEwbSub> list){
        baseMapper.insertBatch(list);
        return true;
    }

    @Override
    public HsEwbSub selectEwbNo(String subEwb) {
        return hsEwbSubMapper.selectEwbNo(subEwb);
    }


}
